<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" href="__THEMES__/style/common.css" />
        <script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
        <script type="text/javascript" src="__JS__/jQuery/plugin/formstyle.js"></script>
        <script type="text/javascript">
            $(function(){
            	
            	$('input[name="account"]').focus();
            	
            	_checkpress("input[name='account']");
            	_checkpress("input[name='password']");
            	_checkpress("input[name='verify']");
            	$('form').submit(function(){
            		if (_checkform("input[name='account']",'*用户名不能为空') == false) return false;
            		if (_checkform("input[name='password']",'*密码不能为空') == false) return false;
            		if (_checkform("input[name='verify']",'*验证码必填') == false) return false;
            	});
            });
            function fleshVerify(type){ 
				//重载验证码
				var timenow = new Date().getTime();
				if (type){
					$('#verifyImg').attr("src", '__URL__/verify/adv/1/'+timenow);
				}else{
					$('#verifyImg').attr("src", '__URL__/verify/'+timenow);
				}
			}
        </script>
        <style type="text/css">
        	body 			 	{ background : #222; overflow-y:hidden; }
        	.login_bar			{ position: absolute; top: 50%; left: 50%; background:#f7f7f7; margin-left: -241px; margin-top: -160px; border-top: 2px solid #925454; }
        	.login_bar h1		{ font-weight: normal; font-size: 18px; background: #e8e8e8; padding: 5px 15px 10px 15px; color: #925454; margin : 0; }
        	.login_bar table 	{ margin: 25px 5px; width: 460px; }
        	.login_bar table tr td
								{ padding: 8px; }
			.login_bar table tr td span.pic
								{ padding-left: 10px; float: left; }
        </style>
        <title>{:C('SITE_TITLE')} -- 登录</title>
    </head>
    <body>
    	<div class="login_bar">
    		<h1>{:C('SITE_TITLE')} - Login</h1>
	        <form method="post" action="{:U("public/checkLogin")}">
	        <table cellspacing="0" border="0">
	            <tr>
	                <td align="right" width="80">账号</td>
	                <td><input type="text" name="account" size="20" class="input_text" style="width : 210px;" /></td>
	            </tr>
	            <tr>
	                <td align="right">密码</td>
	                <td><input type="password" name="password" size="20" class="input_text" style="width : 210px;" /></td>
	            </tr>
	            <tr>
	                <td align="right">验证码</td>
	                <td>
	                    <input name="verify" type="text" size="5" class="input_text" style="width:140px; float:left;" />
	                    <span class="pic"><img id="verifyImg" SRC="__URL__/verify/" onClick="fleshVerify()" border="0" alt="点击刷新验证码" style="cursor:pointer" align="absmiddle"></span>
	                </td>
	            </tr>
	            <tr>
	                <td></td>
	                <td>
	                	<div class="submit_default_box">
							<input type="submit" class="submit_default" value="提交登录" />
							<span class="submit_default_icon" id="submit_icon"></span>
						</div>
	                </td>
	            </tr>
	        </table>
	        </form>
        </div>
    </body>
</html>